/*
 * @Author: Jiraiya
 * @Date: 2020-05-06 15:21:58
 * @LastEditors: Jiraiya
 * @LastEditTime: 2020-05-07 16:24:48
 * @Description: 
 */
const mysqlFactory = require('./hooks/mysql/mysqlFactory');
module.exports = {
    // 服务启动前的hooks
    beforeHooks: [
        // mysql连接
        () => {
            bee.mysqlConnect = (mysqlConfig) => (new (mysqlFactory(mysqlConfig)));
        }
    ],
    // 服务启动后的hooks
    afterHooks: [],
    // 中间件
    middlewareList: [
        {
            name: 'koa-next',
            options: {}
        }
    ]
    
}